


//运营折线
const lineChartData = {
  endValue: 12,
  height: '260px',
  data: [],
  xAxis: []
}


/**后台管理折线图 */
const lineChartDataES = {
  endValue: 11,
  height: '260px',
  data: [],
  xAxis: []
}

const lineChartDataIN = {
  endValue: 11,
  height: '260px',
  data: [
    {
      name: "个体用户数量",
      value: [],
      color: ['#546FEF'],
      type: "line",
      // symbol: "none",
      showSymbol: false,
      stack: 'Total1',
      smooth: true,
      areaStyle: {
        opacity: 0.1,
        color: new echarts.graphic.LinearGradient(
          0, 0, 0, 1, [{//只要修改前四个参数就ok
            offset: 0,
            color: '#546FF0'
          }, //柱图渐变色
          {
            offset: 0.5,
            color: '#546FF0'
          },
          {
            offset: 1,
            color: '#ffffff'
          }
        ]
        ),


      },
    }
  ],
  xAxis: []
}

/** 层叠柱状图 */
const barChartData = {
  endValue: 12,
  height: '260px',
  data: [],
  xAxis: []


};

/**双柱状图 */
const doubleBarChartDatas = {
  endValue: 4,
  height: '260px',
  data: [],
  xAxis: []
  // {
  //   name: '正常',
  //   type: 'bar',
  //   color: "#07C7E0",
  //   itemStyle: {
  //     borderRadius: [10, 10, 0, 0]
  //   },
  //   data: [
  //     2.0, 4.9, 7.0, 23.2, 25.6, 76.7
  //   ],
  // },
  // {
  //   name: '异常',
  //   type: 'bar',
  //   color: "#5069DA",
  //   itemStyle: {
  //     borderRadius: [10, 10, 0, 0]
  //   },
  //   data: [
  //     2.6, 5.9, 9.0, 26.4, 28.7, 70.7,
  //   ],

  // }
}

//单个柱状图
const singleBarChartData =
  {
    name: '设备数量',
    endValue: 12,
    height: '260px',
    data:[],
    xAxis: []
  }
  // {

    //   name: '设备数量',
    //   type: 'bar',
    //   color: "#07C7E0",
    //   itemStyle: {
    //     borderRadius: [10, 10, 0, 0],
    //     color: new echarts.graphic.LinearGradient(
    //       0, 1, 0, 0, [{//只要修改前四个参数就ok
    //         offset: 0,
    //         color: '#2B3150'
    //       }, //柱图渐变色
    //       {
    //         offset: 1,
    //         color: '#07C7E0'
    //       }
    //     ]
    //     ),


    //   },
    //   data: [
    //     2, 4.9, 7, 23, 256, 76
    //   ],
    // },

  
// pie 饼状图

const pieChartData =
{
  orient: 'vertical',
  bottom: '0',
  right: 0,
  top: 'center',
  titleTop: '30%',
  titleLeft: '20%',
  height: '260px',
  series: {
    top: '-40',
    left: 'center',
    radius: ['60%', '80%'],
    center: ['0%', '55%'],
  },

  data: [
  
  ]

}

// pie 饼状图2



const pieChartDataTWO =
{
  orient: 'horizontal',
  bottom: '0',
  right: 'center',
  height: '360px',
  titleTop: '28%',
  titleLeft: '42%',
  series: {
    top: '0',
    left: '50%',
    radius: ['65%', '80%'], //圆环大小外直径，内直径
    center: ['0%', '40%'], //圆环位置
  },
  data: [
    {value: null, name: '已使用',color: "#7846e5", },
    { value: null, name: '未使用', color: "#7846e5", },
  ]
}

const pieChartDataTWOs =
{
  orient: 'horizontal',
  bottom: '0',
  right: 'center',
  height: '360px',
  titleTop: '28%',
  titleLeft: '42%',
  series: {
    top: '0',
    left: '50%',
    radius: ['65%', '80%'], //圆环大小外直径，内直径
    center: ['0%', '40%'], //圆环位置
  },
  data: [
    {value: null, name: '已使用',color: "##07C7E0", },
    { value: null, name: '未使用', color: "#7846e5", },
  ]
}

export {pieChartDataTWOs, barChartData, pieChartData, lineChartData, doubleBarChartDatas, singleBarChartData, pieChartDataTWO, lineChartDataES, lineChartDataIN };
